package com.onstar.cn.framework.utils;

import java.lang.annotation.Annotation;

import com.onstar.cn.common.util.CommonUtil;

/**
 * Annotation processing tools
 * 
 * @author 7828wc
 *
 */
public final class AnnotationUtils {

	/**
	 * The Class whether there is the annotation
	 * 
	 * @param clazz
	 * @param annotationType
	 * @return
	 */
	public final boolean isExistsAnnotation(Class<?> clazz, Class<? extends Annotation> annotationType) {
		if (!CommonUtil.isNull(clazz) && !CommonUtil.isNull(annotationType)) {
			return CommonUtil.isNull(clazz.getAnnotation(annotationType));
		}
		return false;
	}
}
